﻿<Window x:Class="AppDemo.Window2"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"	x:Name="aa"
        Title="Window2" Height="300" Width="300">
    <Window.Resources>
        <shared:ConditionalConverter x:Key="ConditionalConverter" />
    </Window.Resources>
    <Grid>
        <Button x:Name="a" IsEnabled="False" Width="0" Height="0">xxx</Button>
        <Button Content="xxx">
            <Button.Visibility>
                <MultiBinding Converter="{StaticResource ConditionalConverter}">
                    <Binding ElementName="a"
											 Path="IsEnabled" />
                    <Binding Source="{x:Static Visibility.Visible}" />
                    <Binding Source="{x:Static Visibility.Collapsed}" />
                    
                </MultiBinding>
            </Button.Visibility>
        </Button>
    </Grid>
</Window>
